package com.cry.app.core.hibernate;

import org.hibernate.cfg.DefaultNamingStrategy;

public class NamingStrategy extends DefaultNamingStrategy {
	private String prefix="";
	
	@Override
	public String classToTableName(String className) {
		return prefix + super.classToTableName(className);
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public String getPrefix() {
		return prefix;
	}
}
